<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Вход в личный кабинет</title>
    {% load staticfiles %}
    <link href="{% static 'main/css/styles.css' %}" rel="stylesheet" type="text/css"/>
    {% block head %}{% endblock %}
</head>
<body>
<div id="wrapper">
    <div class="login-form">
        <h2>Вход в личный кабинет</h2>

        <p class="error">{% if form.errors %}Ошибка авторизации: неправильная пара логин-пароль{% endif %}</p>

        <form method="post" action="{% url 'django.contrib.auth.views.login' %}">
            {% csrf_token %}
            <table>
                <tr>
                    <td>
                        <label for="id_username">Логин</label>
                    </td>
                    <td>
                        {{ form.username }}
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="id_password">Пароль:</label>
                    </td>
                    <td>
                        {{ form.password }}
                    </td>
                </tr>
            </table>
            <p><input type="submit" value="Войти"/></p>
            <input type="hidden" name="next" value="{{ next }}"/>
        </form>
    </div>
</div>
</body>
</html>